<LayoutTableSmall>
    <!-- 顶部 -->
    <template slot="top"></template>
    <!-- 其他 -->
    <template slot="other">
    </template>
    <!-- 搜索 -->
    <template slot="search">
        <el-form :inline="true" label-position="left" label-width="80px" :model="mixinTable_tableSearchData"
            @submit.native.prevent class="demo-form-inline">
            <el-form-item>
                <el-input clearable v-model="mixinTable_tableSearchData.name" placeholder="请输入自提点名称"
                    @change="mixinTable_searchData" style="width:250px">
                    <el-button slot="append" icon="el-icon-search" @click="mixinTable_searchData()">
                    </el-button>
                </el-input>
            </el-form-item>
        </el-form>
    </template>
    <!-- 功能 -->
    <template slot="function">
        <el-button type="primary" @click="editBoxOpen({type:'create'})">新增自提点</el-button>
    </template>
    <!-- 表格 -->
    <template slot="table">

        <el-table v-loading="mixinTable_loading" :data="mixinTable_tableData" border style="width: 100%;"
            :ref="mixinPage_vueName+'TableSmall'" height="100%"
            @selection-change="mixinTable_handleSelectionChangeTableSmall">
            <el-table-column type="selection" width="50" align="center"></el-table-column>
            <el-table-column type="index" width="50" :index="mixinTable_indexMethod" align="center" label="#">
            </el-table-column>
            <el-table-column prop="name" label="自提点名称" width="200"></el-table-column>
            <el-table-column prop="website" label="自提点地址" width="300">
                <template slot-scope="scope">
                    {{scope.row.province + scope.row.city + scope.row.region + scope.row.street +
                    scope.row.detailAddress}}
                </template>
            </el-table-column>
            <el-table-column prop="mobile" label="联系电话" width="150"></el-table-column>
            <el-table-column prop="operateList" label="营业时间" width="200">
                <template slot-scope="scope">
                    <div v-for="(item,index) of $vFN.Tools.toWeekString(JSON.parse(scope.row.operateList))"
                        :key="index">
                        {{item.week + ' ' + item.time}}
                    </div>
                </template>

            </el-table-column>
            <el-table-column prop="isOpen" label="状态" width="200">
                <template slot-scope="scope">
                    <el-switch v-model="scope.row.isOpen" active-text="开启" inactive-text="关闭" :active-value="1"
                        :inactive-value="0" @change="switchChange($event,scope.row.id)">
                    </el-switch>
                </template>
            </el-table-column>

            <el-table-column label="操作">
                <template slot-scope="scope">
                    <el-button @click="editBoxOpen({type:'detail',id:scope.row.id})">编辑
                    </el-button>
                    <el-button type="danger" plain @click="mixinTable_selectTableDeleteData([scope.row])">删除</el-button>
                </template>
            </el-table-column>

        </el-table>

    </template>
    <!-- 表格选项 -->
    <template slot="options">
        <el-button :disabled="mixinTable_selectTableData.length<=0" @click="mixinTable_selectTableDeleteData()">
            删除已选</el-button>
        <el-button :disabled="mixinTable_selectTableData.length<=0"
            @click="mixinTable_clearSelectionChangeTableSmall()">取消选择
        </el-button>
    </template>
    <!-- 分页 -->
    <template slot="page">
        <el-pagination class="paginationStyle" v-if="mixinTable_pageData.total>0" background
            @current-change="mixinTable_pagingData($event)" :current-page="mixinTable_pageData.pageNum"
            :page-size.sync="$vFN.Constants.pageSize" layout="total, prev, pager, next,jumper"
            :total.sync="mixinTable_pageData.total">
        </el-pagination>
    </template>
</LayoutTableSmall>